home *** CD-ROM | disk | FTP | other *** search
/ Carousel Volume 2 #1 / carousel.iso / mactosh / john / hc_showd.hqx / ShowDialog XCMD 1.4 / card_4861.txt < prev    next >
Encoding:
Text File  |  1989-08-30  |  1.3 KB  |  50 lines

  1. -- card: 4861 from stack: in.4
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 2607
  5. -- name: 
  6.  
  7.  
  8. -- part 1 (button)
  9. -- low flags: 00
  10. -- high flags: A003
  11. -- rect: left=158 top=171 right=193 bottom=352
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 1
  15. -- font id: 0
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: Standard Ask Dialog (Ugly)
  20. ----- HyperTalk script -----
  21. on mouseUp
  22.   ask "This is a strictly functional dialog box" with "and is dull and boring!"
  23. end mouseUp
  24.  
  25.  
  26.  
  27. -- part contents for background part 2
  28. ----- text -----
  29. ShowDialog XCMD Type 2
  30.  
  31. -- part contents for background part 3
  32. ----- text -----
  33. ShowDialog XCMD Type 2: Editable Text Entry
  34.  
  35.  
  36. -- part contents for background part 1
  37. ----- text -----
  38.  
  39.  
  40. The HyperCard "ask" dialog is functional for providing information to the user and then retrieving information from the user but is not a pretty sight.  (Where's the icon?)  Additionally, it would be handy to have an "ask" dialog that could return two strings, for, say, a search and replace dialog box, ├á la any word processor, and a checkbox so you could perform some BOOLEAN operation.
  41.  
  42.  
  43.  
  44.  
  45.  
  46. ShowDialog XCMD Type 2 provides a mechanism for the display of such interactive dialog boxes.
  47.  
  48. -- part contents for background part 7
  49. ----- text -----
  50. 7